package com.pxst.merchant.controller;

import com.pxst.merchant.entity.SysMerchantAvailableBankEntity;

import com.pxst.merchant.service.SysMerchantAvailableBankService;
import com.pxst.resp.ApiResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-14 09:59
 */
@RestController
@Api(tags = "商户可用银行相关接口")
@RequestMapping("/api/merchant/bank")
public  class  SysMerchantAvailableBankController {

    @Autowired
    private SysMerchantAvailableBankService sysmerchantAvailableBankService;

    @ApiOperation("获取商户的可用银行信息")
    @GetMapping("/simple")
    public ApiResp<List<SysMerchantAvailableBankEntity>> getMerchantAvailableBankSimple(Long merchantId){
        return sysmerchantAvailableBankService.getMerchantAvailableBankListByMerchantId(merchantId);
    }


}
